package org.apache.dubbo.demo.consumer.example.eg7;

import org.apache.dubbo.demo.example.eg6.DemoService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Application {

  public static void main(String[] args) {
    ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath:example/eg7/applicationContext.xml");
    DemoService demoService = (DemoService) context.getBean("demoService");
    String result = demoService.sayHello("xufeng");
    System.out.println("*********************** result: " + result + " ***********************");
  }

}
